package com.candy.testofjava0519;

/**
 * @author donglin
 * @Title:
 * @类名: Test04
 * @date 2020/5/19
 */
public class Test04 {
    public static void main(String[] args) {
        int iNum=9;
        switch (iNum){
            case 1:
                System.out.println("iNum的值是1");
                break;
            case 2:
                System.out.println("iNum的值是2");
                break;
            case 8:
                System.out.println("iNum的值是8");
                break;
            default:
                System.out.println("以上答案都不正确");
        }
    }
}
